import Vue from 'vue'
import App from './App.vue'
//引入路由组件
import router from '@/router'
//三级联动组件，注册为全局组件
import TypeNav from '@/components/TypeNav'

//引入仓库
import store from './store'
//引入mockServer
import '@/mock/mockServer'
//引入swiper样式：轮播图使用
import 'swiper/css/swiper.css'

import Carousel from '@/components/Carousel'

Vue.component(TypeNav.name, TypeNav)
Vue.component(Carousel.name,Carousel)
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  //配置全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  //注册路由
  router,
  //注册仓库
  store,
  
}).$mount('#app')
